package org.jsg1904.study001.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: 默苍璃
 * @date: 2022-02-11 14:37
 * <p>
 * 自定义 access 方法
 */
public interface MyAccessService {

    /**
     * 判断是否有权限
     *
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
